package org.example.com.atguigu.contorller;


import io.swagger.v3.oas.annotations.tags.Tag;
import org.example.com.atguigu.po.Appointment;
import org.example.com.atguigu.service.IAppointmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author JBL
 * @since 2025-04-29
 */

@RestController
@RequestMapping("/appointment")
public class AppointmentController {
    @Autowired
    private IAppointmentService appointmentService;
    @PostMapping
public void  save(Appointment appointment){
    appointmentService.save(appointment);

}
}
